var tm='<div class="aw-assest-list-more" v-on:click="Click_More(info_page.all_page,info_page.page,info_page.count)">{{Loding_Text}}</div>';
var Vue_Loding=Vue.extend({
	template:tm,
	props:{
		info_page:{//当前页
			info_page:[String,Number],
			required:true
		},Call_back:{
			default(){
				return function Click_More(){
	            // todo
				}
			}
		}
	},computed:{
		Loding_Text(){
			var info=this.info_page;
			if(!info.page_num){
				//每页数量不存在默认为10
				info.page_num=10;
			}
			var page=info.page;
			//计算总页数
			var all_page=info.count/info.page_num;
			this.info_page.all_page=all_page.toFixed();
			this.info_page.count=info.count;
			this.info_page.page=page;
			if(info.count==0){
				return '― 暂无'+info.tips+' ―';
			}
			if(info.count==-1){
				return '― 我是有底线的 ―';
			}
			if(info.all_page==page){
				return '― 我是有底线的―';
			}else if(info.all_page==0){
				return '― 我是有底线的 ―';
			}else if(info.all_page>page){
				return '加载更多';
			}else{
				return '呀,出错了,请刷新页面';
			}
		}
	},methods:{
		Click_More(all_page,page,count){
			var all_page=parseInt(all_page);
			var page=parseInt(page);
			if(count==-1){
				return
			}
			if(all_page>page){
				vm.form.page=parseInt(page)+1;
				vm.Get_List_Data(1);
			}
		}
	}
});
window.V_Assest_loding=Vue_Loding;
